package com.example.demo.service;

import com.example.demo.entity.Order;
import java.util.List;

public interface OrderService {
    int addOrder(Order order);
    Order getOrderById(int id);
    int updateOrder(Order order);
    int deleteOrder(int id);
    List<Order> getAllOrders();
    Order getOrderWithUserDetails(int id);
    List<Order> getOrdersByUserId(int userId);
    List<Order> getOrdersByUserName(String keyword);

}
